<!doctype html>
<html lang="zh-CN" xml:lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta charset="UTF-8" />
<title>my shop cart to agoda</title>
<meta name="viewport" content="width=1226" />
        <link rel="Shortcut Icon" type="image/x-icon" href="/homeassets/index/images/favicon.ico" />
        <meta name="description" content="agoda"/>
        <meta name="keywords" content="agoda" />
        <link rel="stylesheet" href="/homeassets/index/css/base.min.css" />
        <link rel="stylesheet" type="text/css" href="/homeassets/index/css/order.min.css" />
        <script src="/homeassets/jquery-1.8.3.min.js"></script>
        <script src="/homeassets/homepage/orderjs/area.js"></script>
<script type="text/javascript">var _head_over_time = (new Date()).getTime();</script>
</head>
<body>

  @include('home.layout.cartheader')
<div class="page-main">
    <div class="container">
        <div class="checkout-box">
            <div class="section section-address">
                <div class="section-header clearfix">
                    <h3 class="title">收货地址</h3>

                    <div class="more">
                      </div>
                        </div>
                     
              <div class="section-body clearfix" id="J_addressList">
                @foreach($sites as $value)   
                  <div default="1" info="{{ $value['id'] }}" class="address-item J_addressItem  @if($value['default'] == 1) selected @endif" style="width:267px">
                    <dl>
                      <dt>
                        <span class="tag">{{ $value['phone'] }}</span>
                        <em class="uname">{{ $value['name'] }}</em></dt>
                      <dd class="utel"></dd>
                      <dd class="uaddress">{{ $value['sites'] }}
                      </dd></dl>
                    <div class="actions" name="edit">
                      <a href="javascript:void(0);" class="modify J_addressModify">修改</a>
                    </div>
                  </div>
                  @endforeach
                  @if(count($sites) < 5)
                  <div class="address-item address-item-new" style="width:267px" id="J_newAddress">
                    <i class="iconfont">+</i>添加新地址</div>
                  </div>
                  @endif
                  
            </div>

            <div class="section section-options section-payment clearfix">
                <div class="section-header">
                    <h3 class="title">支付方式</h3>
                </div>
                <div class="section-body clearfix">
                    <ul class="J_optionList options "><li data-type="pay" class="J_option selected" data-value="1">在线支付 <span>（支持微信支付、支付宝、银联、财付通）</span></li></ul>
                </div>
            </div>

            <div class="section section-options section-shipment clearfix">
                <div class="section-header">
                    <h3 class="title">配送方式</h3>
                </div>
                <div class="section-body clearfix">
                    <ul class="clearfix J_optionList options "><li data-type="shipment" class="J_option selected" data-amount="10" data-value="2">快递配送（运费 0 元）</li></ul>

                    <div class="service-self-tip" id="J_serviceSelfTip" style="display: none;"></div>
                </div>
            </div>

            <div class="section section-goods">
                <div class="section-header clearfix">
                    <h3 class="title">商品及优惠券</h3>
                    <div class="more">
                                      
                    </div>
                </div>
                <div class="section-body">
                    <ul class="goods-list" id="J_goodsList">
                      @foreach($create as $val)
                          <li class="clearfix" info="N{{ $val['gid'] }}L{{ $val['count'] }}">
                            <div class="col col-img">
                                <img src="{{ $val['picture'] }}" width="30" height="30">
                            </div>
                            <div class="col col-name">
                                <a href="/goodsdetail/{{ $val['gid'] }}" target="_blank" data-stat-id="" onclick="">
                              {{ $val['goodsname'] }} 
                            </a>
                            </div>
                            <div class="col col-price">
                                {{ $val['price'] }} x {{ $val['count'] }} 
                            </div>
                            <div class="col col-status">
                                有货
                            </div>
                            <div class="col col-total" ii="jj">
                                {{ $val['price']*$val['count'] }}.0元
                            </div>
                        </li>
                        @endforeach
                        </ul>
                </div>
            </div>

        
            <div class="section-bar clearfix">
                
                <div class="fr">
                    <a href="javascript:void(0);" class="btn btn-primary" id="J_checkoutToPay" onclick="">去结算</a>
                </div>
                <div class="fr" id="sum">
                  <h3>总金额：<span style="color:orange"></span></h3>
                </div>
            </div>
        </div>
    
    </div>
</div>
<div id="reorder" style="width:350px;height:470px;background:#fff;font-size:20px;position:fixed;top:180px;left:600px;border:1px solid #ccc;display:none;z-index:100">
  <div style="margin:10px">
  <h3 id="reordert">添加地址</h3>
  </div>
  <div style="margin:10px">
   <input id="rename" placeholder="请输入收件人姓名" style="width: 100%;height:30px" >
  </div>
  <div style="margin:10px">
   <input id="rephone" placeholder="请输入手机号" onkeyup="if(!/^\d+$/.test(this.value)) { this.value=this.value.replace(/[^\d]+/g,'');}" onblur="if(!/^\d+$/.test(this.value)) { this.value=this.value.replace(/[^\d]+/g,'');}" style="width: 100%;height:30px" >
  </div>
  <div style="margin:10px">
   <select id="Province" runat="server" name="province" style="width: 100%;height:30px" ></select>
  </div>
  <div style="margin:10px">
   <select id="Country" runat="server" name="country" style="width: 100%;height:30px"></select>
  </div>
  <div style="margin:10px">
  <select id="Town" runat="server" name="town" style="width: 100%;height:30px"></select>
  </div> 
  <div style="margin:10px">
  <textarea id="detailsites" placeholder="请输入详细地址" style="width: 100%;height:80px;resize: none;" ></textarea>
  </div>    
    <script language="javascript">
  setup();
    </script>
    <div class="actions" style="margin:10px;margin-top:30px">
        <button class="btn btn-gray" data-dismiss="modal" id="J_alertCancel1">取消</button>
        <button class="btn btn-primary" data-dismiss="modal" id="J_alertOk1">确定</button>
    </div>
</div>

<script src="/homeassets/homepage/orderjs/order.js"></script>
<script src="/homeassets/index/js/layout.js"></script> 
</body>
</html>